#include "iostream"
class Time
{
private:
   int hours;
   int minutes;
public:
   Time();
   Time(int hours, int minutes);
   void AddMin(int m);
   void AddHr(int h);
   void Reset(int h = 0, int m = 0);
   Time operator+(const Time & time) const;
   Time operator-(const Time & time) const;
   Time operator*(const int n) const;
   friend std::ostream & operator<<(std::ostream & os, const Time & time);
   // 友元函数不属于本类，所以不能使用const作为函数的结尾
   friend Time operator*(const int n, const Time & t);
   void Show() const;
};
